import { Http } from '@/common/api'

export const apiPostResetPwd = async (params) => Http.put('/upms/user/resetPwd', params)
export const apiPutChangePwd = async (params) => Http.put('/upms/user/checkChangePwd', params)

// 公告列表
export const noticeListUrl = '/upms/notice/page'

export const quoteListUrl = '/srm/enquiry/supplier/page'

export const pricingListUrl = '/srm/pricing/supplier/page'

export const apiGetSupplierTotal = async (id) => Http.get('/srm/supplier/home/total')

export const apiGetSupplierOverview = async (id) => Http.get('/srm/supplier/home/overview')

export const supplierOrderUrl = '/srm/purchase/order/supplier/page'

/**
 * 根据ID查询公告
 * @param id
 * @return {*|Promise}
 */
export const apiGetNotice = async (id) => Http.get(`/upms/notice/findById/${id}`)
